package com.think.common.restful;

import cn.hutool.http.HttpStatus;
import lombok.*;

/**
 * <p>
 * restful 成功返回
 * </p>
 *
 * @author: xwj
 * @data: 2019-04-06
 */
@Getter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SuccessRestfulResponse<T> implements RestfulResponse {

    private static final long serialVersionUID = 1L;

    /**
     * http状态码
     */
    @Builder.Default
    private Integer status = HttpStatus.HTTP_OK;

    /**
     * 结果集返回
     */
    private T result;
}
